#include "receivethread.h"

ReceiveThread::ReceiveThread(QSerialPort *mycom)
{
    com=new QSerialPort;
    com=mycom;
    com->clear();
}

void ReceiveThread::run()
{
    while(1)
    {
        if(com->bytesAvailable()>=66)
        {
            emit comRecive();
        }
        this->msleep(10);
    }
}
